/**
 * @see https://umijs.org/zh-CN/plugins/plugin-access
 * */
export default function access(initialState: { currentUser?: API.CurrentUser } | undefined) {
  const { currentUser } = initialState ?? {};
  console.log(currentUser);
  let access: any = currentUser?.access;


  return {
    admin: access === "admin",
    test: access === "test",
    line: access === "line",//线索员
  };
}
